// popup.js

// 发送消息到 content.js 以获取 your-local-file.html 内容
chrome.tabs.query({ active: true, currentWindow: true }, function(tabs) {
  chrome.tabs.sendMessage(tabs[0].id, { action: "getHtmlContent" }, function(response) {
    // 在控制台打印 your-local-file.html 内容
    console.log("HTML content:", response.htmlContent);
    chrome.tabs.sendMessage(tabs[0].id, { action: "appendElement", htmlContent: response.htmlContent });

  });
});

